package com.example.client;

import com.example.client.impl.BaseClientImpl;
import com.example.vo.User;
import com.example.common.Rt;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service", fallback = BaseClientImpl.class)
public interface BaseClient {

    @GetMapping("/user/{id}")
    Rt<User> getById(@PathVariable("id") Integer id);

}
